
import React, { Component } from 'react';
import {
  StyleSheet,
  View,
  ConsoleModule,
  Text,
} from '@hippy/react';

const styles = StyleSheet.create({
  container: {
    backgroundColor: "white",
    height: 160,
    justifyContent: 'center',
    alignItems: 'center',
  },
  sliderStyle: {
    marginLeft: 15,
    marginRight: 15,
    height: 160,
    borderRadius: 12,
  },
  tempTipText: {
    flex: 1,
    textAlign: 'center',
    backgroundColor: '#00000040',
    fontSize: 20,
    color: 'white',
  }
});

import Slider from './Slider';

const IMAGE_URLS = [
  'https://user-images.githubusercontent.com/12878546/148736627-bca54707-6939-45b3-84f7-74e6c2c09c88.jpg',
  'https://user-images.githubusercontent.com/12878546/148736679-0521fdff-09f5-40e3-a36a-55c8f714be16.jpg',
  'https://user-images.githubusercontent.com/12878546/148736685-a4c226ad-f64a-4fe0-b3df-ce0d8fcd7a01.jpg',
];

export default class HomeBanner extends Component {
  constructor(props) {
    super(props);

  }

  render() {
    return (
      <View style={styles.container}>
        {/* <Slider
          style={styles.sliderStyle}
          images={IMAGE_URLS}
          duration={1000}
        /> */}
        <Text style={styles.tempTipText}>此处为轮播, 官方UI组件未显示, 待排查</Text>
      </View>
    );
  }
}
